<template>
    <van-nav-bar
  title="使用说明"
  left-text="返回"
  left-arrow
  @click-left="onClickLeft"
/>
<div>
    <!-- 优惠券类别列表 -->
    <van-cell-group>
      <van-cell
        v-for="(category, index) in categories"
        :key="index"
        :title="category.explainName"
        :label="category.introduce"
        
      />
    </van-cell-group>
  </div>
</template>
<script setup>
import { ref,reactive } from 'vue';
import {yhjexplain} from  '@/api/userinfo';
const router = useRouter();


const categories = ref([]);

const yhjexList =async()=>{
    const {data}= await yhjexplain()
    console.log(data);
    
    categories.value=data.data
}

yhjexList()
// 返回按钮
const onClickLeft =()=>{
 router.push("/userinfo")
}
</script>
